BenSelect Documentation
Set Max Benefit Amount Based On Person's Age
Send Feedback
JScript Examples > JScript for Plans > Set Max Benefit Amount Based On Person's Age

Glossary Item Box

Use the following code to set the maximum benefit amount, based on a person's age.

 

var effective = DateTime.Now;

var dob = Event.Employee.EmployeePerson.DOB;

var age = effective.Year - dob.Year;

if (dob.Month > effective.Month || dob.Month == effective.Month && dob.Day > effective.Day)

age--;

if (age > 69) {

Event.Config.MaxBenefitAmount = '50000';

}

 

 

 

©2024. All Rights Reserved.